/**
 * Created by Jacky.gao on 2016/5/17.
 */
var webpack = require('webpack');
const path = require('path');
module.exports = {
    mode: 'development',
    entry: {
        test: './test.js'
    },
    output: {
        path: path.resolve('./output'),
        filename: '[name].bundle.js'
    },
    module: {
        rules: [
            {
                test: /\.json$/,
                loader: 'json'
            },
            {
                test: /\.(jsx|js)?$/,
                exclude: /(node_modules|bower_components)/,
                loader: 'babel-loader'

            },
            {
                test: /\.css$/,
                loader: "style-loader!css-loader"
            },
            {
                test: /\.(eot|woff|woff2|ttf|svg|png|jpg)$/,
                use: [
                    {
                        loader: 'url-loader',
                        options: {
                            limit: 10000000
                        }
                    }
                ]
            }
        ]
    }
};